/*
reset
*/
*,:before,:after{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body, dl, dd, h1, h2, h3, h4, h5, h6, p, form, ol, ul, dl{
    margin: 0;
}
html,body{
    -webkit-overflow-scrolling: touch;
    height: 100%;
}
html {
    font-size: 17.06666666px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden
}
@media only screen and (min-width: 360px) {
    html {
        font-size: 19.2px !important;
    }
}
@media only screen and (min-width: 375px) {
    html {
        font-size: 20px !important;
    }
}
@media only screen and (min-width: 400px) {
    html {
        font-size: 21.33333333px !important;
    }
}
@media only screen and (min-width: 414px) {
    html {
        font-size: 22.08px !important;
    }
}
@media only screen and (min-width: 480px) {
    html {
        font-size: 25.6px !important;
    }
}
body{
    margin: 0 auto;
    min-width: 320px;
    max-width: 640px;
    background: #efeff4;
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
    font-size: .8rem;
    word-break: break-all;
}
ol,ul{
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    color: #000;
}
i,em{
    font-style: normal;
}
img{
    border: none 0;
    vertical-align: middle;
    max-width: 100%;
}
input,button,select,textarea{
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    resize: none;
    -webkit-appearance: none;
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
}
input{
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
}
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input::-moz-placeholder, textarea::-moz-placeholder {
    color: #c8c8c8;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #c8c8c8;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #c8c8c8;
}

/*
模拟输入框光标闪烁效果
*/
@-webkit-keyframes blink-caret {
    50% {
        background: transparent;
    }
}
@keyframes blink-caret {
    50% {
        background: transparent;
    }
}

/*
pay
*/
.pay-wrap{
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
    height: 100%;
}
.pay-wrap .main{
    -webkit-box-flex: 1;
    flex: 1;
    padding: .75rem;
    overflow-y: auto;
}
.pay-wrap .main .box{
    padding-top: .875rem;
    -webkit-border-radius: .1rem;
    border-radius: .1rem;
    background: #fbfbfb;
    overflow: hidden;
}
.pay-wrap .main .avatar{
    display: block;
    margin: 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}
.pay-wrap .main .title{
    margin: .35rem 0 .875rem;
    font-size: .9rem;
    color: #ef4337;
    text-align: center;
}
.form-group{
    padding: 1rem .875rem;
    background: #fff;
}
.control-label{
    margin-bottom: .25rem;
    font-size: .7rem;
    color: #1f1f1f;
}
.control-box{
    display: -webkit-box;
    display: flex;
}
.control-box .symbol{
    margin-right: .25rem;
    padding-top: .075rem;
    font-size: 1.3rem;
    color: #1f1f1f;
}
.form-control{
    -webkit-box-flex: 1;
    flex: 1;
    position: relative;
    height: 2.5rem;
    font-size: 2.5rem;
    color: #1e1e1e;
    line-height: 1;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.form-control::-webkit-scrollbar{
    width: 0;
    height: 0
}
.form-control:after{
    content: '';
    position: absolute;
    top: .25rem;
    bottom: .15rem;
    width: 2px;
    -webkit-border-radius: 1px;
    border-radius: 1px;
    background: #5e5b5f;
    animation: blink-caret .5s step-end infinite alternate;
}
.form-control[reset]:after{
    left: 0;
}
.keyboard{
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    -webkit-user-select: none;
    user-select: none;
}
.keyboard .key{
    float: left;
    width: 25%;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.25rem;
    color: #12263c;
    text-align: center;
    border-style: solid;
    border-color: #f0f0f0;
    border-width: 1px 1px 0 0;
    cursor: pointer;
}
.keyboard .key[data-action="point"]{
    font-size: 1.5rem;
    line-height: 1.9rem;
}
.keyboard .key:active{
    background: #f0f0f0;
}
.keyboard #del, .keyboard #confirm{
    float: right;
    height: 6rem;
    line-height: 6rem;
    border-right: 0;
}
.keyboard #del{
    background-image: url("del.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.5rem;
}
.keyboard #confirm{
    border-color: transparent;
    font-size: .9rem;
    color: #fff;
    background: #d43b33;
}
.keyboard #confirm:active{
    background: #BF332C;
}
.keyboard #confirm[disabled]{
    color: rgba(255,255,255,.5);
}
